package com.tuomaxu.core;

import com.tuomaxu.config.Configuration;

public class SqlSessionFactoryImp implements SqlSessionFactory {
    private Configuration configuration;

    public SqlSessionFactoryImp(Configuration configuration) {
        this.configuration = configuration;
    }

    @Override
    public SqlSession openSqlSession() {
        SqlSession sqlSession = new SqlSessionImp(configuration);
        return sqlSession;
    }
}
